package com.studio49.exmple.entity.web.sys;

import javax.persistence.Column;
import javax.persistence.Table;

import com.studio49.exmple.core.entity.BaseEntity;

@Table(name = "sys_user")
public class User extends BaseEntity{

	private static final long serialVersionUID = 1L;

	@Column(name = "login_name")
	private String loginName;
	
	@Column(name = "password")
	private String password;
	
	/**
	 * 用户昵称
	 */
	@Column(name = "user_name")
	private String userName;
	
	@Column(name = "mobile")
	private String mobile;
	
	@Column(name = "email")
	private String email;
	
	/**
	 * 用户类型(1：app用户；2：后台用户）
	 */
	@Column(name = "user_type")
	private Short userType;
	
	/**
	 * 角色(1:教师;2:家长)
	 */
	@Column(name = "role")
	private Short role;
	
	/**
	 * 
	 */
	@Column(name = "uuid")
	private String uuid;
	
	@Column(name = "open_id")
	private String openId;

	@Column(name="description")
	private String description;
	/**
	 * 是否可用
	 */
	@Column(name = "is_enable")
	private Short isEnable;


    public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Short getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Short isEnable) {
		this.isEnable = isEnable;
	}

	public Short getRole() {
        return role;
    }

    public void setRole(Short role) {
        this.role = role;
    }

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Short getUserType() {
		return userType;
	}

	public void setUserType(Short userType) {
		this.userType = userType;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}